//结构体数组
#include<iostream>
#include<string.h>

using namespace std;

struct Student
{
	string name;
	int age;
	int score;
};
 
int main()
{
	struct Student s1[] =
	{
		{"张三",19,100},
		{"李四",20,60},
		{"王五",21,60},

	};
	for (int i = 0; i < 3; i++)
	{
		cout << "姓名：" << s1[i].name << " ";
		cout << "年龄：" << s1[i].age << " ";
		cout << "成绩：" << s1[i].score << " ";
		cout << endl;
	}
	s1[2].name = "赵六";
	s1[2].age= 50;
	s1[2].score = 121;
	cout << "姓名：" << s1[2].name << "年龄：" << s1[2].age << "成绩：" << s1[2].score << endl;;
	system("pause");
	return 0;
}
